home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Demos / DTP / QuarkXPress™ 3.3 / Scripts / Frontier Runtime scripts / Examples.FitBoxToText / Examples.FitBoxToText.rsrc
MacOS Resource Fork  |  1994-05-02  |  7.9 KB  |  [2CLK/LAND]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Resource Fork (archive/rsrc).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
66% TrID Mac AppleDouble encoded default
33% TrID TTComp archive compressed (bin-2K) default (weak)
100% lsar AppleSingle default


id metadata
keyvalue
macFileType[2CLK]
macFileCreator[LAND]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 1f 50 32 43 4c 4b 4c 41 | 4e 44 01 00 00 00 00 00 |.P2CLKLA|ND......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 1e a6 00 00 1d a6 00 00 |........|........|
|00000060| 00 aa 56 69 63 69 6f 75 | 73 00 66 ad c2 00 0f 00 |..Viciou|s.f.....|
|00000070| 0f d8 d6 00 00 12 92 00 | 00 a7 0d 4b 0b 00 00 12 |........|...K....|
|00000080| 92 00 15 45 78 61 6d 70 | 6c 65 73 2e 46 69 74 42 |...Examp|les.FitB|
|00000090| 6f 78 54 6f 54 65 78 74 | 02 00 00 00 32 43 4c 4b |oxToText|....2CLK|
|000000a0| 4c 41 00 00 32 43 4c 4b | 4c 41 4e 44 00 00 00 00 |LA..2CLK|LAND....|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 ab 83 6f 29 | 00 00 00 00 00 00 1f 50 |......o)|.......P|
|000000d0| 6f 75 73 00 f3 b5 98 00 | 0f 00 0f d8 d6 00 00 02 |ous.....|........|
|000000e0| 18 00 00 00 05 00 05 00 | 00 2e 7c 00 00 a7 0d 4b |........|..|....K|
|000000f0| 0b 15 45 78 61 6d 70 6c | 65 73 2e 46 69 74 42 6f |..Exampl|es.FitBo|
|00000100| 78 54 6f 54 65 78 74 bc | 14 00 00 ff ff 00 20 37 |xToText.|...... 7|
|00000110| 24 0e 4f 6e 6c 69 6e 65 | 20 53 63 72 69 70 74 73 |$.Online| Scripts|
|00000120| 64 00 0a fb 70 40 80 ed | 0c 00 00 ff ff 00 b4 78 |d...p@..|.......x|
|00000130| d8 0b 53 69 64 20 56 69 | 63 69 6f 75 73 00 b4 7a |..Sid Vi|cious..z|
|00000140| 0c 00 0f 00 0f d8 d6 4c | 44 45 46 00 00 00 00 00 |.......L|DEF.....|
|00000150| 00 00 00 00 00 06 05 32 | 2e 30 2e 31 00 00 00 09 |.......2|.0.1....|
|00000160| 08 46 72 6f 6e 74 69 65 | 72 00 00 01 c2 00 01 04 |.Frontie|r.......|
|00000170| e0 00 02 00 00 00 18 00 | 00 01 2e 00 02 02 00 00 |........|........|
|00000180| 0f 06 47 65 6e 65 76 61 | 00 00 00 00 00 00 00 00 |..Geneva|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 09 00 00 00 | 00 00 01 00 01 00 00 06 |........|........|
|000001b0| 54 00 0f a4 d0 77 90 a8 | 96 86 68 00 00 00 65 80 |T....w..|..h...e.|
|000001c0| 00 00 2f 00 0c 00 98 02 | 5e 00 00 00 00 00 00 00 |../.....|^.......|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 6f 6e 20 63 61 6c 6c |........|.on call|
|000001f0| 69 6d 70 6f 72 74 65 72 | 20 28 70 61 74 68 29 20 |importer| (path) |
|00000200| c7 74 68 69 73 20 73 63 | 72 69 70 74 20 69 73 20 |.this sc|ript is |
|00000210| 73 61 76 65 64 20 77 69 | 74 68 20 61 6c 6c 20 65 |saved wi|th all e|
|00000220| 78 70 6f 72 74 65 64 20 | 6f 62 6a 65 63 74 73 0d |xported |objects.|
|00000230| 09 55 6e 2d 63 6f 6d 6d | 65 6e 74 20 61 6e 64 20 |.Un-comm|ent and |
|00000240| 65 64 69 74 20 74 68 65 | 20 66 6f 6c 6c 77 6f 69 |edit the| follwoi|
|00000250| 6e 67 20 6c 69 6e 65 20 | 74 6f 20 61 75 74 6f 2d |ng line |to auto-|
|00000260| 69 6e 73 74 61 6c 6c 20 | 69 74 65 6d 20 69 6e 20 |install |item in |
|00000270| 73 63 72 69 70 74 20 6d | 65 6e 75 20 66 6f 72 20 |script m|enu for |
|00000280| 72 75 6e 2d 30 74 69 6d | 65 20 66 6f 6c 6b 73 0d |run-0tim|e folks.|
|00000290| 09 6d 65 6e 75 2e 61 64 | 64 6d 65 6e 75 63 6f 6d |.menu.ad|dmenucom|
|000002a0| 6d 61 6e 64 28 40 73 79 | 73 74 65 6d 2e 6d 65 6e |mand(@sy|stem.men|
|000002b0| 75 62 61 72 73 2e 58 50 | 52 33 2c 22 53 63 72 69 |ubars.XP|R3,"Scri|
|000002c0| 70 74 73 22 2c 22 46 69 | 74 20 42 6f 78 20 54 6f |pts","Fi|t Box To|
|000002d0| 20 54 65 78 74 22 2c 22 | 51 58 50 2e 45 78 61 6d | Text","|QXP.Exam|
|000002e0| 70 6c 65 73 2e 46 69 74 | 42 6f 78 54 6f 54 65 78 |ples.Fit|BoxToTex|
|000002f0| 74 28 29 22 29 0d 09 72 | 65 74 75 72 6e 20 28 65 |t()")..r|eturn (e|
|00000300| 78 70 6f 72 74 2e 69 6d | 70 6f 72 74 65 72 20 28 |xport.im|porter (|
|00000310| 70 61 74 68 29 29 0d 80 | 00 00 00 00 00 84 00 00 |path))..|........|
|00000320| 00 00 00 80 00 00 00 00 | 00 80 00 00 00 00 00 00 |........|........|
|00000330| 00 00 0d 0c 63 61 6c 6c | 69 6d 70 6f 72 74 65 72 |....call|importer|
|00000340| 00 00 00 02 01 31 00 00 | 1b ae 73 63 70 74 00 01 |.....1..|..scpt..|
|00000350| 04 bc 00 02 00 00 03 ba | 00 00 17 74 00 00 02 00 |........|...t....|
|00000360| 00 0f 06 47 65 6e 65 76 | 61 00 00 00 00 00 00 00 |...Genev|a.......|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 09 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 06 54 00 00 a8 96 67 52 | a9 ea 7c 41 00 00 00 08 |.T....gR|..|A....|
|000003a0| 00 00 00 26 00 00 01 c6 | 02 7a 4c 41 4e 44 00 00 |...&....|.zLAND..|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 0d a9 31 39 39 33 |........|....1993|
|000003d0| 20 51 75 61 72 6b 2c 20 | 49 6e 63 2e 20 20 41 6c | Quark, |Inc. Al|
|000003e0| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|000003f0| 64 2e 0d 09 54 48 49 53 | 20 53 43 52 49 50 54 20 |d...THIS| SCRIPT |
|00000400| 57 49 4c 4c 20 46 49 54 | 20 41 20 54 45 58 54 20 |WILL FIT| A TEXT |
|00000410| 42 4f 58 20 41 52 4f 55 | 4e 44 20 54 48 45 20 54 |BOX AROU|ND THE T|
|00000420| 45 58 54 20 54 48 41 54 | 0d 09 49 53 20 49 4e 53 |EXT THAT|..IS INS|
|00000430| 49 44 45 20 4f 46 20 49 | 54 2e 0d 0d 0d 09 45 52 |IDE OF I|T.....ER|
|00000440| 52 4f 52 20 52 4f 55 54 | 49 4e 45 20 54 48 41 54 |ROR ROUT|INE THAT|
|00000450| 20 49 53 20 43 41 4c 4c | 45 44 20 49 46 20 54 48 | IS CALL|ED IF TH|
|00000460| 45 52 45 20 49 53 20 4e | 4f 20 54 45 58 54 20 42 |ERE IS N|O TEXT B|
|00000470| 4f 58 0d 09 53 45 4c 45 | 43 54 45 44 20 4f 52 20 |OX..SELE|CTED OR |
|00000480| 4d 4f 52 45 20 54 48 41 | 4e 20 4f 4e 45 20 54 45 |MORE THA|N ONE TE|
|00000490| 58 54 20 42 4f 58 20 53 | 45 4c 45 43 54 45 44 2e |XT BOX S|ELECTED.|
|000004a0| 0d 0d 6f 6e 20 63 61 6e | 74 64 6f 28 29 0d 09 77 |..on can|tdo()..w|
|000004b0| 69 74 68 20 51 58 50 2c | 51 58 50 2e 64 65 66 73 |ith QXP,|QXP.defs|
|000004c0| 2c 6f 62 6a 65 63 74 4d | 6f 64 65 6c 0d 09 09 64 |,objectM|odel...d|
|000004d0| 69 61 6c 6f 67 2e 6e 6f | 74 69 66 79 28 22 41 20 |ialog.no|tify("A |
|000004e0| 73 69 6e 67 6c 65 20 74 | 65 78 74 20 62 6f 78 20 |single t|ext box |
|000004f0| 6d 75 73 74 20 62 65 20 | 73 65 6c 65 63 74 65 64 |must be |selected|
|00000500| 2e 22 29 0d 09 09 62 72 | 69 6e 67 54 6f 46 72 6f |.")...br|ingToFro|
|00000510| 6e 74 28 29 0d 09 09 73 | 65 74 28 76 65 72 74 69 |nt()...s|et(verti|
|00000520| 63 61 6c 4d 65 61 73 75 | 72 65 2c 6f 72 69 67 76 |calMeasu|re,origv|
|00000530| 65 72 74 29 0d 09 09 73 | 65 74 28 68 6f 72 69 7a |ert)...s|et(horiz|
|00000540| 6f 6e 74 61 6c 4d 65 61 | 73 75 72 65 2c 6f 72 69 |ontalMea|sure,ori|
|00000550| 67 68 6f 72 7a 29 0d 09 | 09 72 65 74 75 72 6e 0d |ghorz)..|.return.|
|00000560| 0d 09 43 48 45 43 4b 49 | 4e 47 20 49 46 20 54 48 |..CHECKI|NG IF TH|
|00000570| 45 52 45 20 49 53 20 41 | 20 53 54 4f 52 59 20 49 |ERE IS A| STORY I|
|00000580| 4e 20 54 48 45 20 54 45 | 58 54 20 42 4f 58 2e 0d |N THE TE|XT BOX..|
|00000590| 0d 6f 6e 20 6d 75 73 74 | 62 65 73 74 6f 72 79 28 |.on must|bestory(|
|000005a0| 29 0d 09 77 69 74 68 20 | 51 58 50 2c 51 58 50 2e |)..with |QXP,QXP.|
|000005b0| 64 65 66 73 2c 6f 62 6a | 65 63 74 4d 6f 64 65 6c |defs,obj|ectModel|
|000005c0| 0d 09 09 64 69 61 6c 6f | 67 2e 61 6c 65 72 74 28 |...dialo|g.alert(|
|000005d0| 22 54 68 65 72 65 20 6d | 75 73 74 20 62 65 20 61 |"There m|ust be a|
|000005e0| 20 73 74 6f 72 79 20 69 | 6e 20 74 68 65 20 74 65 | story i|n the te|
|000005f0| 78 74 20 62 6f 78 2e 22 | 29 0d 09 09 62 72 69 6e |xt box."|)...brin|
|00000600| 67 54 6f 46 72 6f 6e 74 | 28 29 0d 09 09 73 65 74 |gToFront|()...set|
|00000610| 28 64 6f 63 75 6d 65 6e | 74 5b 31 5d 2e 76 65 72 |(documen|t[1].ver|
|00000620| 74 69 63 61 6c 4d 65 61 | 73 75 72 65 2c 6f 72 69 |ticalMea|sure,ori|
|00000630| 67 76 65 72 74 29 0d 09 | 09 73 65 74 28 64 6f 63 |gvert)..|.set(doc|
|00000640| 75 6d 65 6e 74 5b 31 5d | 2e 68 6f 72 69 7a 6f 6e |ument[1]|.horizon|
|00000650| 74 61 6c 4d 65 61 73 75 | 72 65 2c 6f 72 69 67 68 |talMeasu|re,origh|
|00000660| 6f 72 7a 29 0d 09 09 72 | 65 74 75 72 6e 0d 0d 09 |orz)...r|eturn...|
|00000670| 4d 41 49 4e 20 52 4f 55 | 54 49 4e 45 2e 0d 0d 6f |MAIN ROU|TINE...o|
|00000680| 6e 20 66 69 74 74 65 78 | 74 62 6f 78 28 29 0d 09 |n fittex|tbox()..|
|00000690| 77 69 74 68 20 51 58 50 | 2c 51 58 50 2e 64 65 66 |with QXP|,QXP.def|
|000006a0| 73 2c 6f 62 6a 65 63 74 | 4d 6f 64 65 6c 0d 09 09 |s,object|Model...|
|000006b0| 62 72 69 6e 67 54 6f 46 | 72 6f 6e 74 28 29 0d 09 |bringToF|ront()..|
|000006c0| 09 0d 09 09 09 53 45 54 | 54 49 4e 47 20 44 45 4c |.....SET|TING DEL|
|000006d0| 49 4d 49 54 20 49 54 45 | 4d 53 20 53 4f 20 54 48 |IMIT ITE|MS SO TH|
|000006e0| 41 54 20 43 45 52 54 41 | 49 4e 20 43 48 41 52 41 |AT CERTA|IN CHARA|
|000006f0| 43 54 45 52 53 20 57 49 | 4c 4c 0d 09 09 09 42 45 |CTERS WI|LL....BE|
|00000700| 20 54 41 4b 45 4e 20 49 | 4e 54 4f 20 43 4f 4e 53 | TAKEN I|NTO CONS|
|00000710| 49 44 45 52 41 54 49 4f | 4e 20 57 48 45 4e 20 46 |IDERATIO|N WHEN F|
|00000720| 49 54 54 49 4e 47 20 54 | 48 45 20 54 45 58 54 20 |ITTING T|HE TEXT |
|00000730| 42 4f 58 0d 09 09 09 41 | 52 4f 55 4e 44 20 54 48 |BOX....A|ROUND TH|
|00000740| 45 20 54 45 58 54 2e 0d | 09 09 0d 09 09 77 69 74 |E TEXT..|.....wit|
|00000750| 68 20 64 65 6c 69 6d 69 | 74 74 61 62 6c 65 5b 31 |h delimi|ttable[1|
|00000760| 5d 0d 09 09 09 73 65 74 | 28 64 65 6c 69 6d 69 74 |]....set|(delimit|
|00000770| 49 74 65 6d 5b 74 61 62 | 5d 2c 63 61 6e 73 74 61 |Item[tab|],cansta|
|00000780| 72 74 6f 72 65 6e 64 6f | 72 62 65 63 6f 6e 74 61 |rtorendo|rbeconta|
|00000790| 69 6e 65 64 69 6e 77 6f | 72 64 29 0d 09 09 09 73 |inedinwo|rd)....s|
|000007a0| 65 74 28 64 65 6c 69 6d | 69 74 49 74 65 6d 5b 63 |et(delim|itItem[c|
|000007b0| 72 5d 2c 63 61 6e 73 74 | 61 72 74 6f 72 65 6e 64 |r],canst|artorend|
|000007c0| 6f 72 62 65 63 6f 6e 74 | 61 69 6e 65 64 69 6e 77 |orbecont|ainedinw|
|000007d0| 6f 72 64 29 0d 09 09 09 | 73 65 74 28 64 65 6c 69 |ord)....|set(deli|
|000007e0| 6d 69 74 49 74 65 6d 5b | 22 2e 22 5d 2c 63 61 6e |mitItem[|"."],can|
|000007f0| 73 74 61 72 74 6f 72 65 | 6e 64 6f 72 62 65 63 6f |startore|ndorbeco|
|00000800| 6e 74 61 69 6e 65 64 69 | 6e 77 6f 72 64 29 0d 09 |ntainedi|nword)..|
|00000810| 09 09 73 65 74 28 64 65 | 6c 69 6d 69 74 49 74 65 |..set(de|limitIte|
|00000820| 6d 5b 22 3f 22 5d 2c 63 | 61 6e 73 74 61 72 74 6f |m["?"],c|anstarto|
|00000830| 72 65 6e 64 6f 72 62 65 | 63 6f 6e 74 61 69 6e 65 |rendorbe|containe|
|00000840| 64 69 6e 77 6f 72 64 29 | 0d 09 09 09 73 65 74 28 |dinword)|....set(|
|00000850| 64 65 6c 69 6d 69 74 49 | 74 65 6d 5b 22 21 22 5d |delimitI|tem["!"]|
|00000860| 2c 63 61 6e 73 74 61 72 | 74 6f 72 65 6e 64 6f 72 |,canstar|torendor|
|00000870| 62 65 63 6f 6e 74 61 69 | 6e 65 64 69 6e 77 6f 72 |becontai|nedinwor|
|00000880| 64 29 0d 09 09 09 73 65 | 74 28 64 65 6c 69 6d 69 |d)....se|t(delimi|
|00000890| 74 49 74 65 6d 5b 22 3a | 22 5d 2c 63 61 6e 73 74 |tItem[":|"],canst|
|000008a0| 61 72 74 6f 72 65 6e 64 | 6f 72 62 65 63 6f 6e 74 |artorend|orbecont|
|000008b0| 61 69 6e 65 64 69 6e 77 | 6f 72 64 29 0d 09 09 09 |ainedinw|ord)....|
|000008c0| 73 65 74 28 64 65 6c 69 | 6d 69 74 49 74 65 6d 5b |set(deli|mitItem[|
|000008d0| 22 3b 22 5d 2c 63 61 6e | 73 74 61 72 74 6f 72 65 |";"],can|startore|
|000008e0| 6e 64 6f 72 62 65 63 6f | 6e 74 61 69 6e 65 64 69 |ndorbeco|ntainedi|
|000008f0| 6e 77 6f 72 64 29 0d 09 | 09 0d 09 09 09 4f 42 54 |nword)..|.....OBT|
|00000900| 41 49 4e 49 4e 47 20 4f | 52 49 47 49 4e 41 4c 20 |AINING O|RIGINAL |
|00000910| 44 4f 43 55 4d 45 4e 54 | 20 53 50 45 43 49 46 49 |DOCUMENT| SPECIFI|
|00000920| 43 41 54 49 4f 4e 53 20 | 53 4f 20 54 48 41 54 20 |CATIONS |SO THAT |
|00000930| 54 48 45 59 0d 09 09 09 | 43 41 4e 20 42 45 20 52 |THEY....|CAN BE R|
|00000940| 45 53 45 54 20 41 54 20 | 54 48 45 20 45 4e 44 20 |ESET AT |THE END |
|00000950| 4f 46 20 54 48 45 20 53 | 43 52 49 50 54 2e 0d 09 |OF THE S|CRIPT...|
|00000960| 09 0d 09 09 69 66 20 65 | 78 69 73 74 73 28 64 6f |....if e|xists(do|
|00000970| 63 75 6d 65 6e 74 5b 31 | 5d 29 0d 09 09 09 77 69 |cument[1|])....wi|
|00000980| 74 68 20 64 6f 63 75 6d | 65 6e 74 5b 31 5d 0d 09 |th docum|ent[1]..|
|00000990| 09 09 09 6f 72 69 67 76 | 65 72 74 20 3d 20 67 65 |...origv|ert = ge|
|000009a0| 74 28 76 65 72 74 69 63 | 61 6c 4d 65 61 73 75 72 |t(vertic|alMeasur|
|000009b0| 65 29 0d 09 09 09 09 6f | 72 69 67 68 6f 72 7a 20 |e).....o|righorz |
|000009c0| 3d 20 67 65 74 28 68 6f | 72 69 7a 6f 6e 74 61 6c |= get(ho|rizontal|
|000009d0| 4d 65 61 73 75 72 65 29 | 0d 09 09 09 09 73 65 74 |Measure)|.....set|
|000009e0| 28 76 65 72 74 69 63 61 | 6c 4d 65 61 73 75 72 65 |(vertica|lMeasure|
|000009f0| 2c 70 6f 69 6e 74 73 29 | 0d 09 09 09 09 73 65 74 |,points)|.....set|
|00000a00| 28 68 6f 72 69 7a 6f 6e | 74 61 6c 4d 65 61 73 75 |(horizon|talMeasu|
|00000a10| 72 65 2c 70 6f 69 6e 74 | 73 29 0d 09 09 09 09 69 |re,point|s).....i|
|00000a20| 66 20 21 28 65 78 69 73 | 74 73 28 63 75 72 72 65 |f !(exis|ts(curre|
|00000a30| 6e 74 62 6f 78 29 29 0d | 09 09 09 09 09 63 61 6e |ntbox)).|.....can|
|00000a40| 74 64 6f 28 29 0d 09 09 | 09 09 09 72 65 74 75 72 |tdo()...|...retur|
|00000a50| 6e 0d 09 09 09 09 69 66 | 20 28 28 67 65 74 28 63 |n.....if| ((get(c|
|00000a60| 75 72 72 65 6e 74 62 6f | 78 2e 62 6f 78 74 79 70 |urrentbo|x.boxtyp|
|00000a70| 65 29 20 ad 20 74 65 78 | 74 62 6f 78 29 29 0d 09 |e) . tex|tbox))..|
|00000a80| 09 09 09 09 63 61 6e 74 | 64 6f 28 29 0d 09 09 09 |....cant|do()....|
|00000a90| 09 09 72 65 74 75 72 6e | 0d 09 09 09 09 74 72 79 |..return|.....try|
|00000aa0| 0d 09 09 09 09 09 77 69 | 74 68 20 63 75 72 72 65 |......wi|th curre|
|00000ab0| 6e 74 62 6f 78 0d 09 09 | 09 09 09 09 0d 09 09 09 |ntbox...|........|
|00000ac0| 09 09 09 09 43 48 45 43 | 4b 20 54 4f 20 53 45 45 |....CHEC|K TO SEE|
|00000ad0| 20 49 46 20 54 48 45 52 | 45 20 41 52 45 20 41 4e | IF THER|E ARE AN|
|00000ae0| 59 20 43 4f 4e 54 45 4e | 54 53 20 49 4e 20 54 48 |Y CONTEN|TS IN TH|
|00000af0| 45 20 54 45 58 54 20 42 | 4f 58 2e 0d 09 09 09 09 |E TEXT B|OX......|
|00000b00| 09 09 0d 09 09 09 09 09 | 09 49 66 20 21 28 65 78 |........|.If !(ex|
|00000b10| 69 73 74 73 28 73 74 6f | 72 79 5b 31 5d 2e 63 68 |ists(sto|ry[1].ch|
|00000b20| 61 72 61 63 74 65 72 5b | 31 5d 29 29 0d 09 09 09 |aracter[|1]))....|
|00000b30| 09 09 09 09 6d 75 73 74 | 62 65 73 74 6f 72 79 28 |....must|bestory(|
|00000b40| 29 0d 09 09 09 09 09 09 | 09 72 65 74 75 72 6e 0d |).......|.return.|
|00000b50| 09 09 09 09 09 09 0d 09 | 09 09 09 09 09 09 49 46 |........|......IF|
|00000b60| 20 54 48 45 52 45 20 49 | 53 20 41 20 50 41 52 41 | THERE I|S A PARA|
|00000b70| 47 52 41 50 48 20 52 45 | 54 55 52 4e 20 41 54 20 |GRAPH RE|TURN AT |
|00000b80| 54 48 45 20 45 4e 44 20 | 4f 46 20 54 48 45 20 53 |THE END |OF THE S|
|00000b90| 54 4f 52 59 20 54 48 45 | 4e 20 44 45 4c 45 54 45 |TORY THE|N DELETE|
|00000ba0| 20 49 54 0d 09 09 09 09 | 09 09 09 54 4f 20 45 52 | IT.....|...TO ER|
|00000bb0| 52 41 44 49 43 41 54 45 | 20 41 4e 20 4f 56 45 52 |RADICATE| AN OVER|
|00000bc0| 46 4c 4f 57 20 53 59 4d | 42 4f 4c 2e 0d 09 09 09 |FLOW SYM|BOL.....|
|00000bd0| 09 09 09 0d 09 09 09 09 | 09 09 69 66 20 28 67 65 |........|..if (ge|
|00000be0| 74 61 73 28 63 68 61 72 | 61 63 74 65 72 5b 6c 61 |tas(char|acter[la|
|00000bf0| 73 74 5d 2c 73 74 72 69 | 6e 67 74 79 70 65 29 20 |st],stri|ngtype) |
|00000c00| 3d 3d 20 63 72 20 29 0d | 09 09 09 09 09 09 09 64 |== cr ).|.......d|
|00000c10| 65 6c 65 74 65 28 20 63 | 68 61 72 61 63 74 65 72 |elete( c|haracter|
|00000c20| 5b 6c 61 73 74 5d 29 0d | 09 09 09 09 09 09 0d 09 |[last]).|........|
|00000c30| 09 09 09 09 09 09 44 45 | 54 45 52 4d 49 4e 49 4e |......DE|TERMININ|
|00000c40| 47 20 49 46 20 54 48 45 | 52 45 20 41 52 45 20 41 |G IF THE|RE ARE A|
|00000c50| 4e 59 20 49 4e 44 45 4e | 54 53 20 49 4e 20 54 48 |NY INDEN|TS IN TH|
|00000c60| 45 20 53 54 4f 52 59 0d | 09 09 09 09 09 09 0d 09 |E STORY.|........|
|00000c70| 09 09 09 09 09 6e 75 6d | 70 61 72 61 67 72 61 70 |.....num|paragrap|
|00000c80| 68 73 20 3d 20 63 6f 75 | 6e 74 28 63 75 72 72 65 |hs = cou|nt(curre|
|00000c90| 6e 74 62 6f 78 2c 70 61 | 72 61 67 72 61 70 68 29 |ntbox,pa|ragraph)|
|00000ca0| 0d 09 09 09 09 09 09 69 | 66 20 6e 75 6d 70 61 72 |.......i|f numpar|
|00000cb0| 61 67 72 61 70 68 73 20 | 3d 3d 20 31 0d 09 09 09 |agraphs |== 1....|
|00000cc0| 09 09 09 09 6d 69 6e 6c | 65 66 74 69 6e 64 65 6e |....minl|eftinden|
|00000cd0| 74 20 3d 20 67 65 74 61 | 73 28 70 61 72 61 67 72 |t = geta|s(paragr|
|00000ce0| 61 70 68 5b 31 5d 2e 6c | 65 66 74 69 6e 64 65 6e |aph[1].l|eftinden|
|00000cf0| 74 2c 66 69 78 65 64 74 | 79 70 65 29 0d 09 09 09 |t,fixedt|ype)....|
|00000d00| 09 09 09 09 6d 69 6e 72 | 69 67 68 74 69 6e 64 65 |....minr|ightinde|
|00000d10| 6e 74 20 3d 20 67 65 74 | 61 73 28 70 61 72 61 67 |nt = get|as(parag|
|00000d20| 72 61 70 68 5b 31 5d 2e | 72 69 67 68 74 69 6e 64 |raph[1].|rightind|
|00000d30| 65 6e 74 2c 66 69 78 65 | 64 74 79 70 65 29 0d 09 |ent,fixe|dtype)..|
|00000d40| 09 09 09 09 09 09 6d 69 | 6e 69 6e 64 65 6e 74 73 |......mi|nindents|
|00000d50| 20 3d 20 6d 69 6e 6c 65 | 66 74 69 6e 64 65 6e 74 | = minle|ftindent|
|00000d60| 2b 6d 69 6e 72 69 67 68 | 74 69 6e 64 65 6e 74 0d |+minrigh|tindent.|
|00000d70| 09 09 09 09 09 09 09 6d | 61 78 77 69 64 74 68 20 |.......m|axwidth |
|00000d80| 3d 20 67 65 74 61 73 28 | 70 61 72 61 67 72 61 70 |= getas(|paragrap|
|00000d90| 68 5b 31 5d 2e 6c 69 6e | 65 5b 31 5d 2e 77 69 64 |h[1].lin|e[1].wid|
|00000da0| 74 68 2c 66 69 78 65 64 | 74 79 70 65 29 2b 6d 69 |th,fixed|type)+mi|
|00000db0| 6e 69 6e 64 65 6e 74 73 | 0d 09 09 09 09 09 09 09 |nindents|........|
|00000dc0| 6e 75 6d 6c 69 6e 65 73 | 20 3d 20 63 6f 75 6e 74 |numlines| = count|
|00000dd0| 28 70 61 72 61 67 72 61 | 70 68 5b 31 5d 2c 6c 69 |(paragra|ph[1],li|
|00000de0| 6e 65 29 0d 09 09 09 09 | 09 09 09 69 66 20 6e 75 |ne).....|...if nu|
|00000df0| 6d 6c 69 6e 65 73 20 3d | 3d 20 31 0d 09 09 09 09 |mlines =|= 1.....|
|00000e00| 09 09 09 09 62 6c 61 68 | 20 3d 20 67 65 74 61 73 |....blah| = getas|
|00000e10| 28 74 65 78 74 69 6e 73 | 65 74 2e 70 6c 65 66 74 |(textins|et.pleft|
|00000e20| 2c 66 69 78 65 64 74 79 | 70 65 29 2b 67 65 74 61 |,fixedty|pe)+geta|
|00000e30| 73 28 74 65 78 74 69 6e | 73 65 74 2e 70 72 69 67 |s(textin|set.prig|
|00000e40| 68 74 2c 66 69 78 65 64 | 74 79 70 65 29 2b 6d 61 |ht,fixed|type)+ma|
|00000e50| 78 77 69 64 74 68 0d 09 | 09 09 09 09 09 09 09 73 |xwidth..|.......s|
|00000e60| 65 74 20 28 62 6f 75 6e | 64 73 2e 77 69 64 74 68 |et (boun|ds.width|
|00000e70| 2c 28 67 65 74 61 73 28 | 74 65 78 74 69 6e 73 65 |,(getas(|textinse|
|00000e80| 74 2e 70 6c 65 66 74 2c | 66 69 78 65 64 74 79 70 |t.pleft,|fixedtyp|
|00000e90| 65 29 2b 67 65 74 61 73 | 28 74 65 78 74 69 6e 73 |e)+getas|(textins|
|00000ea0| 65 74 2e 70 72 69 67 68 | 74 2c 66 69 78 65 64 74 |et.prigh|t,fixedt|
|00000eb0| 79 70 65 29 2b 6d 61 78 | 77 69 64 74 68 29 29 0d |ype)+max|width)).|
|00000ec0| 09 09 09 09 09 09 65 6c | 73 65 0d 09 09 09 09 09 |......el|se......|
|00000ed0| 09 09 6d 69 6e 6c 65 66 | 74 69 6e 64 65 6e 74 20 |..minlef|tindent |
|00000ee0| 3d 20 67 65 74 61 73 28 | 70 61 72 61 67 72 61 70 |= getas(|paragrap|
|00000ef0| 68 5b 31 5d 2e 6c 65 66 | 74 69 6e 64 65 6e 74 2c |h[1].lef|tindent,|
|00000f00| 66 69 78 65 64 74 79 70 | 65 29 0d 09 09 09 09 09 |fixedtyp|e)......|
|00000f10| 09 09 6d 69 6e 72 69 67 | 68 74 69 6e 64 65 6e 74 |..minrig|htindent|
|00000f20| 20 3d 20 67 65 74 61 73 | 28 70 61 72 61 67 72 61 | = getas|(paragra|
|00000f30| 70 68 5b 31 5d 2e 72 69 | 67 68 74 69 6e 64 65 6e |ph[1].ri|ghtinden|
|00000f40| 74 2c 66 69 78 65 64 74 | 79 70 65 29 0d 09 09 09 |t,fixedt|ype)....|
|00000f50| 09 09 09 09 6d 69 6e 69 | 6e 64 65 6e 74 73 20 3d |....mini|ndents =|
|00000f60| 20 6d 69 6e 6c 65 66 74 | 69 6e 64 65 6e 74 2b 6d | minleft|indent+m|
|00000f70| 69 6e 72 69 67 68 74 69 | 6e 64 65 6e 74 0d 09 09 |inrighti|ndent...|
|00000f80| 09 09 09 09 09 6d 61 78 | 77 69 64 74 68 20 3d 20 |.....max|width = |
|00000f90| 67 65 74 61 73 28 70 61 | 72 61 67 72 61 70 68 5b |getas(pa|ragraph[|
|00000fa0| 31 5d 2e 6c 69 6e 65 5b | 31 5d 2e 77 69 64 74 68 |1].line[|1].width|
|00000fb0| 2c 66 69 78 65 64 74 79 | 70 65 29 2b 6d 69 6e 69 |,fixedty|pe)+mini|
|00000fc0| 6e 64 65 6e 74 73 0d 09 | 09 09 09 09 09 09 66 6f |ndents..|......fo|
|00000fd0| 72 20 69 20 3d 20 31 20 | 74 6f 20 6e 75 6d 70 61 |r i = 1 |to numpa|
|00000fe0| 72 61 67 72 61 70 68 73 | 0d 09 09 09 09 09 09 09 |ragraphs|........|
|00000ff0| 09 6d 69 6e 6c 65 66 74 | 69 6e 64 65 6e 74 20 3d |.minleft|indent =|
|00001000| 20 67 65 74 61 73 28 70 | 61 72 61 67 72 61 70 68 | getas(p|aragraph|
|00001010| 5b 69 5d 2e 6c 65 66 74 | 69 6e 64 65 6e 74 2c 66 |[i].left|indent,f|
|00001020| 69 78 65 64 74 79 70 65 | 29 0d 09 09 09 09 09 09 |ixedtype|).......|
|00001030| 09 09 6d 69 6e 72 69 67 | 68 74 69 6e 64 65 6e 74 |..minrig|htindent|
|00001040| 20 3d 20 67 65 74 61 73 | 28 70 61 72 61 67 72 61 | = getas|(paragra|
|00001050| 70 68 5b 69 5d 2e 72 69 | 67 68 74 69 6e 64 65 6e |ph[i].ri|ghtinden|
|00001060| 74 2c 66 69 78 65 64 74 | 79 70 65 29 0d 09 09 09 |t,fixedt|ype)....|
|00001070| 09 09 09 09 09 6d 69 6e | 69 6e 64 65 6e 74 73 20 |.....min|indents |
|00001080| 3d 20 6d 69 6e 6c 65 66 | 74 69 6e 64 65 6e 74 2b |= minlef|tindent+|
|00001090| 6d 69 6e 72 69 67 68 74 | 69 6e 64 65 6e 74 0d 09 |minright|indent..|
|000010a0| 09 09 09 09 09 09 09 0d | 09 09 09 09 09 09 09 09 |........|........|
|000010b0| 09 46 49 4e 44 49 4e 47 | 20 54 48 45 20 4e 55 4d |.FINDING| THE NUM|
|000010c0| 42 45 52 20 4f 46 20 4c | 49 4e 45 53 20 49 4e 20 |BER OF L|INES IN |
|000010d0| 41 20 50 41 52 41 47 52 | 41 50 48 0d 09 09 09 09 |A PARAGR|APH.....|
|000010e0| 09 09 09 09 0d 09 09 09 | 09 09 09 09 09 6e 75 6d |........|.....num|
|000010f0| 6c 69 6e 65 73 20 3d 20 | 63 6f 75 6e 74 28 70 61 |lines = |count(pa|
|00001100| 72 61 67 72 61 70 68 5b | 69 5d 2c 6c 69 6e 65 29 |ragraph[|i],line)|
|00001110| 0d 09 09 09 09 09 09 09 | 09 0d 09 09 09 09 09 09 |........|........|
|00001120| 09 09 09 49 46 20 54 48 | 49 53 20 49 53 20 54 48 |...IF TH|IS IS TH|
|00001130| 45 20 46 49 52 53 54 20 | 50 41 52 41 47 52 41 50 |E FIRST |PARAGRAP|
|00001140| 48 20 53 54 41 52 54 20 | 27 54 52 59 27 20 43 4f |H START |'TRY' CO|
|00001150| 4d 50 41 52 49 4e 47 20 | 41 54 20 54 48 45 20 53 |MPARING |AT THE S|
|00001160| 45 43 4f 4e 44 20 4c 49 | 4e 45 0d 09 09 09 09 09 |ECOND LI|NE......|
|00001170| 09 09 09 0d 09 09 09 09 | 09 09 09 09 69 66 20 28 |........|....if (|
|00001180| 69 3d 3d 31 29 0d 09 09 | 09 09 09 09 09 09 09 74 |i==1)...|.......t|
|00001190| 72 79 0d 09 09 09 09 09 | 09 09 09 09 09 66 6f 72 |ry......|.....for|
|000011a0| 20 6a 3d 32 20 74 6f 20 | 6e 75 6d 6c 69 6e 65 73 | j=2 to |numlines|
|000011b0| 0d 09 09 09 09 09 09 09 | 09 09 09 09 69 66 20 28 |........|....if (|
|000011c0| 28 67 65 74 61 73 28 70 | 61 72 61 67 72 61 70 68 |(getas(p|aragraph|
|000011d0| 5b 69 5d 2e 6c 69 6e 65 | 5b 6a 5d 2e 77 69 64 74 |[i].line|[j].widt|
|000011e0| 68 2c 66 69 78 65 64 74 | 79 70 65 29 2b 6d 69 6e |h,fixedt|ype)+min|
|000011f0| 69 6e 64 65 6e 74 73 29 | 3e 6d 61 78 77 69 64 74 |indents)|>maxwidt|
|00001200| 68 29 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 6d |h)......|.......m|
|00001210| 61 78 77 69 64 74 68 20 | 3d 20 67 65 74 61 73 28 |axwidth |= getas(|
|00001220| 70 61 72 61 67 72 61 70 | 68 5b 69 5d 2e 6c 69 6e |paragrap|h[i].lin|
|00001230| 65 5b 6a 5d 2e 77 69 64 | 74 68 2c 66 69 78 65 64 |e[j].wid|th,fixed|
|00001240| 74 79 70 65 29 2b 6d 69 | 6e 69 6e 64 65 6e 74 73 |type)+mi|nindents|
|00001250| 0d 09 09 09 09 09 09 09 | 09 65 6c 73 65 0d 09 09 |........|.else...|
|00001260| 09 09 09 09 09 09 09 66 | 6f 72 20 6a 3d 31 20 74 |.......f|or j=1 t|
|00001270| 6f 20 6e 75 6d 6c 69 6e | 65 73 0d 09 09 09 09 09 |o numlin|es......|
|00001280| 09 09 09 09 09 69 66 20 | 28 28 67 65 74 61 73 28 |.....if |((getas(|
|00001290| 70 61 72 61 67 72 61 70 | 68 5b 69 5d 2e 6c 69 6e |paragrap|h[i].lin|
|000012a0| 65 5b 6a 5d 2e 77 69 64 | 74 68 2c 66 69 78 65 64 |e[j].wid|th,fixed|
|000012b0| 74 79 70 65 29 2b 6d 69 | 6e 69 6e 64 65 6e 74 73 |type)+mi|nindents|
|000012c0| 29 3e 6d 61 78 77 69 64 | 74 68 29 0d 09 09 09 09 |)>maxwid|th).....|
|000012d0| 09 09 09 09 09 09 09 6d | 61 78 77 69 64 74 68 20 |.......m|axwidth |
|000012e0| 3d 20 67 65 74 61 73 28 | 70 61 72 61 67 72 61 70 |= getas(|paragrap|
|000012f0| 68 5b 69 5d 2e 6c 69 6e | 65 5b 6a 5d 2e 77 69 64 |h[i].lin|e[j].wid|
|00001300| 74 68 2c 66 69 78 65 64 | 74 79 70 65 29 2b 6d 69 |th,fixed|type)+mi|
|00001310| 6e 69 6e 64 65 6e 74 73 | 0d 09 09 09 09 09 09 09 |nindents|........|
|00001320| 66 69 6e 61 6c 6d 61 78 | 77 69 64 74 68 3d 6d 61 |finalmax|width=ma|
|00001330| 78 77 69 64 74 68 0d 09 | 09 09 09 09 09 09 73 65 |xwidth..|......se|
|00001340| 74 28 62 6f 75 6e 64 73 | 2e 77 69 64 74 68 2c 28 |t(bounds|.width,(|
|00001350| 67 65 74 61 73 28 74 65 | 78 74 69 6e 73 65 74 2e |getas(te|xtinset.|
|00001360| 70 6c 65 66 74 2c 66 69 | 78 65 64 74 79 70 65 29 |pleft,fi|xedtype)|
|00001370| 2b 67 65 74 61 73 28 74 | 65 78 74 69 6e 73 65 74 |+getas(t|extinset|
|00001380| 2e 70 72 69 67 68 74 2c | 66 69 78 65 64 74 79 70 |.pright,|fixedtyp|
|00001390| 65 29 2b 66 69 6e 61 6c | 6d 61 78 77 69 64 74 68 |e)+final|maxwidth|
|000013a0| 29 29 0d 09 09 09 09 09 | 09 0d 09 09 09 09 09 09 |))......|........|
|000013b0| 09 46 49 4e 44 49 4e 47 | 20 54 48 45 20 42 41 53 |.FINDING| THE BAS|
|000013c0| 45 4c 49 4e 45 20 41 4e | 44 20 54 48 45 20 44 45 |ELINE AN|D THE DE|
|000013d0| 53 43 45 4e 54 20 4f 46 | 20 54 48 45 20 4c 41 53 |SCENT OF| THE LAS|
|000013e0| 54 20 4c 49 4e 45 20 41 | 4e 44 20 41 44 44 49 4e |T LINE A|ND ADDIN|
|000013f0| 47 0d 09 09 09 09 09 09 | 09 54 48 4f 53 45 20 54 |G.......|.THOSE T|
|00001400| 4f 20 54 48 45 20 54 45 | 58 54 20 49 4e 53 45 54 |O THE TE|XT INSET|
|00001410| 20 4f 46 20 54 48 45 20 | 42 4f 54 54 4f 4d 20 50 | OF THE |BOTTOM P|
|00001420| 41 52 54 20 4f 46 20 54 | 48 45 20 42 4f 55 4e 44 |ART OF T|HE BOUND|
|00001430| 53 20 50 4c 55 53 20 54 | 48 45 20 54 45 58 54 20 |S PLUS T|HE TEXT |
|00001440| 0d 09 09 09 09 09 09 09 | 49 4e 53 45 54 20 4f 46 |........|INSET OF|
|00001450| 20 54 48 45 20 54 4f 50 | 20 50 41 52 54 20 4f 46 | THE TOP| PART OF|
|00001460| 20 54 48 45 20 42 4f 55 | 4e 44 53 2e 20 20 46 52 | THE BOU|NDS. FR|
|00001470| 4f 4d 20 54 48 49 53 20 | 56 41 4c 55 45 20 54 48 |OM THIS |VALUE TH|
|00001480| 45 20 53 55 4d 4d 41 54 | 49 4f 4e 20 4f 46 20 54 |E SUMMAT|ION OF T|
|00001490| 48 45 20 42 41 53 45 4c | 49 4e 45 0d 09 09 09 09 |HE BASEL|INE.....|
|000014a0| 09 09 09 41 4e 44 20 54 | 48 45 20 41 53 43 45 4e |...AND T|HE ASCEN|
|000014b0| 54 20 4f 46 20 54 48 45 | 20 46 49 52 53 54 20 4c |T OF THE| FIRST L|
|000014c0| 49 4e 45 20 4f 46 20 54 | 48 45 20 53 54 4f 52 59 |INE OF T|HE STORY|
|000014d0| 20 41 52 45 20 53 55 42 | 54 52 41 43 54 45 44 20 | ARE SUB|TRACTED |
|000014e0| 0d 09 09 09 09 09 09 09 | 54 4f 20 46 49 4e 44 20 |........|TO FIND |
|000014f0| 54 48 45 20 4e 45 57 20 | 48 45 49 47 48 54 20 4f |THE NEW |HEIGHT O|
|00001500| 46 20 54 48 45 20 54 45 | 58 54 20 42 4f 58 2e 0d |F THE TE|XT BOX..|
|00001510| 09 09 09 09 09 09 0d 09 | 09 09 09 09 09 6d 61 72 |........|.....mar|
|00001520| 62 6f 74 74 6f 6d 20 3d | 28 67 65 74 61 73 28 6c |bottom =|(getas(l|
|00001530| 69 6e 65 5b 6c 61 73 74 | 5d 2e 62 61 73 65 6c 69 |ine[last|].baseli|
|00001540| 6e 65 2c 66 69 78 65 64 | 74 79 70 65 29 2b 67 65 |ne,fixed|type)+ge|
|00001550| 74 61 73 28 6c 69 6e 65 | 5b 6c 61 73 74 5d 2e 64 |tas(line|[last].d|
|00001560| 65 73 63 65 6e 74 2c 66 | 69 78 65 64 74 79 70 65 |escent,f|ixedtype|
|00001570| 29 29 0d 09 09 09 09 09 | 09 69 73 74 68 65 72 65 |))......|.isthere|
|00001580| 72 75 6c 65 62 65 6c 6f | 77 3d 67 65 74 28 70 61 |rulebelo|w=get(pa|
|00001590| 72 61 67 72 61 70 68 5b | 6c 61 73 74 5d 2e 72 75 |ragraph[|last].ru|
|000015a0| 6c 65 62 65 6c 6f 77 2e | 72 75 6c 65 6f 6e 29 0d |lebelow.|ruleon).|
|000015b0| 09 09 09 09 09 09 69 66 | 20 28 69 73 74 68 65 72 |......if| (isther|
|000015c0| 65 72 75 6c 65 62 65 6c | 6f 77 20 3d 3d 20 74 72 |erulebel|ow == tr|
|000015d0| 75 65 29 0d 09 09 09 09 | 09 09 09 72 75 6c 65 77 |ue).....|...rulew|
|000015e0| 69 64 74 68 20 3d 20 67 | 65 74 61 73 28 70 61 72 |idth = g|etas(par|
|000015f0| 61 67 72 61 70 68 5b 6c | 61 73 74 5d 2e 72 75 6c |agraph[l|ast].rul|
|00001600| 65 62 65 6c 6f 77 2e 77 | 69 64 74 68 2c 66 69 78 |ebelow.w|idth,fix|
|00001610| 65 64 74 79 70 65 29 0d | 09 09 09 09 09 09 09 74 |edtype).|.......t|
|00001620| 6f 70 6f 66 73 74 6f 72 | 79 20 3d 20 28 67 65 74 |opofstor|y = (get|
|00001630| 61 73 28 6c 69 6e 65 5b | 66 69 72 73 74 5d 2e 62 |as(line[|first].b|
|00001640| 61 73 65 6c 69 6e 65 2c | 66 69 78 65 64 74 79 70 |aseline,|fixedtyp|
|00001650| 65 29 2d 67 65 74 61 73 | 28 6c 69 6e 65 5b 66 69 |e)-getas|(line[fi|
|00001660| 72 73 74 5d 2e 61 73 63 | 65 6e 74 2c 66 69 78 65 |rst].asc|ent,fixe|
|00001670| 64 74 79 70 65 29 29 0d | 09 09 09 09 09 09 09 62 |dtype)).|.......b|
|00001680| 6f 74 74 6f 6d 69 6e 73 | 65 74 20 3d 20 67 65 74 |ottomins|et = get|
|00001690| 61 73 28 74 65 78 74 69 | 6e 73 65 74 2e 70 62 6f |as(texti|nset.pbo|
|000016a0| 74 74 6f 6d 2c 66 69 78 | 65 64 74 79 70 65 29 0d |ttom,fix|edtype).|
|000016b0| 09 09 09 09 09 09 09 74 | 6f 70 69 6e 73 65 74 20 |.......t|opinset |
|000016c0| 3d 20 67 65 74 61 73 28 | 74 65 78 74 69 6e 73 65 |= getas(|textinse|
|000016d0| 74 2e 70 74 6f 70 2c 66 | 69 78 65 64 74 79 70 65 |t.ptop,f|ixedtype|
|000016e0| 29 0d 09 09 09 09 09 09 | 09 64 65 73 63 65 6e 64 |).......|.descend|
|000016f0| 65 72 20 3d 20 67 65 74 | 61 73 28 6c 69 6e 65 5b |er = get|as(line[|
|00001700| 6c 61 73 74 5d 2e 64 65 | 73 63 65 6e 74 2c 66 69 |last].de|scent,fi|
|00001710| 78 65 64 74 79 70 65 29 | 0d 09 09 09 09 09 09 09 |xedtype)|........|
|00001720| 6d 61 72 62 6f 74 74 6f | 6d 20 3d 20 6d 61 72 62 |marbotto|m = marb|
|00001730| 6f 74 74 6f 6d 20 2b 20 | 72 75 6c 65 77 69 64 74 |ottom + |rulewidt|
|00001740| 68 2d 64 65 73 63 65 6e | 64 65 72 2b 62 6f 74 74 |h-descen|der+bott|
|00001750| 6f 6d 69 6e 73 65 74 0d | 09 09 09 09 09 09 09 73 |ominset.|.......s|
|00001760| 65 74 28 62 6f 75 6e 64 | 73 2e 68 65 69 67 68 74 |et(bound|s.height|
|00001770| 2c 28 6d 61 72 62 6f 74 | 74 6f 6d 2d 74 6f 70 6f |,(marbot|tom-topo|
|00001780| 66 73 74 6f 72 79 2b 62 | 6f 74 74 6f 6d 69 6e 73 |fstory+b|ottomins|
|00001790| 65 74 2b 74 6f 70 69 6e | 73 65 74 29 29 0d 09 09 |et+topin|set))...|
|000017a0| 09 09 09 09 65 6c 73 65 | 0d 09 09 09 09 09 09 09 |....else|........|
|000017b0| 74 6f 70 6f 66 73 74 6f | 72 79 20 3d 20 28 67 65 |topofsto|ry = (ge|
|000017c0| 74 61 73 28 6c 69 6e 65 | 5b 66 69 72 73 74 5d 2e |tas(line|[first].|
|000017d0| 62 61 73 65 6c 69 6e 65 | 2c 66 69 78 65 64 74 79 |baseline|,fixedty|
|000017e0| 70 65 29 2d 67 65 74 61 | 73 28 6c 69 6e 65 5b 66 |pe)-geta|s(line[f|
|000017f0| 69 72 73 74 5d 2e 61 73 | 63 65 6e 74 2c 66 69 78 |irst].as|cent,fix|
|00001800| 65 64 74 79 70 65 29 29 | 0d 09 09 09 09 09 09 09 |edtype))|........|
|00001810| 62 6f 74 74 6f 6d 69 6e | 73 65 74 20 3d 20 67 65 |bottomin|set = ge|
|00001820| 74 61 73 28 74 65 78 74 | 69 6e 73 65 74 2e 70 62 |tas(text|inset.pb|
|00001830| 6f 74 74 6f 6d 2c 66 69 | 78 65 64 74 79 70 65 29 |ottom,fi|xedtype)|
|00001840| 0d 09 09 09 09 09 09 09 | 74 6f 70 69 6e 73 65 74 |........|topinset|
|00001850| 20 3d 20 67 65 74 61 73 | 28 74 65 78 74 69 6e 73 | = getas|(textins|
|00001860| 65 74 2e 70 74 6f 70 2c | 66 69 78 65 64 74 79 70 |et.ptop,|fixedtyp|
|00001870| 65 29 0d 09 09 09 09 09 | 09 09 73 65 74 28 62 6f |e)......|..set(bo|
|00001880| 75 6e 64 73 2e 68 65 69 | 67 68 74 2c 28 6d 61 72 |unds.hei|ght,(mar|
|00001890| 62 6f 74 74 6f 6d 2d 74 | 6f 70 6f 66 73 74 6f 72 |bottom-t|opofstor|
|000018a0| 79 2b 62 6f 74 74 6f 6d | 69 6e 73 65 74 2b 74 6f |y+bottom|inset+to|
|000018b0| 70 69 6e 73 65 74 29 29 | 0d 09 09 09 09 65 6c 73 |pinset))|.....els|
|000018c0| 65 0d 09 09 09 09 09 63 | 61 6e 74 64 6f 28 29 0d |e......c|antdo().|
|000018d0| 09 09 09 09 0d 09 09 09 | 09 09 52 45 53 45 54 20 |........|..RESET |
|000018e0| 54 48 45 20 44 4f 43 55 | 4d 45 4e 54 20 53 50 45 |THE DOCU|MENT SPE|
|000018f0| 43 49 46 49 43 41 54 49 | 4f 4e 53 20 42 41 43 4b |CIFICATI|ONS BACK|
|00001900| 20 54 4f 20 54 48 45 20 | 4f 52 49 47 49 4e 41 4c | TO THE |ORIGINAL|
|00001910| 20 53 45 54 54 49 4e 47 | 53 2e 0d 09 09 09 09 0d | SETTING|S.......|
|00001920| 09 09 09 09 73 65 74 28 | 76 65 72 74 69 63 61 6c |....set(|vertical|
|00001930| 4d 65 61 73 75 72 65 2c | 6f 72 69 67 76 65 72 74 |Measure,|origvert|
|00001940| 29 0d 09 09 09 09 73 65 | 74 28 68 6f 72 69 7a 6f |).....se|t(horizo|
|00001950| 6e 74 61 6c 4d 65 61 73 | 75 72 65 2c 6f 72 69 67 |ntalMeas|ure,orig|
|00001960| 68 6f 72 7a 29 0d 09 09 | 65 6c 73 65 0d 09 09 09 |horz)...|else....|
|00001970| 64 69 61 6c 6f 67 2e 6e | 6f 74 69 66 79 28 22 50 |dialog.n|otify("P|
|00001980| 6c 65 61 73 65 20 68 61 | 76 65 20 61 20 64 6f 63 |lease ha|ve a doc|
|00001990| 75 6d 65 6e 74 20 6f 70 | 65 6e 20 62 65 66 6f 72 |ument op|en befor|
|000019a0| 65 20 72 75 6e 6e 69 6e | 67 20 74 68 69 73 20 73 |e runnin|g this s|
|000019b0| 63 72 69 70 74 2e 22 29 | 0d 09 09 0d 09 09 09 52 |cript.")|.......R|
|000019c0| 45 53 45 54 20 54 48 45 | 20 44 45 4c 49 4d 49 54 |ESET THE| DELIMIT|
|000019d0| 20 49 54 45 4d 53 20 42 | 41 43 4b 20 54 4f 20 54 | ITEMS B|ACK TO T|
|000019e0| 48 45 20 4f 52 49 47 49 | 4e 41 4c 20 53 45 54 54 |HE ORIGI|NAL SETT|
|000019f0| 49 4e 47 53 2e 0d 09 09 | 0d 09 09 62 72 69 6e 67 |INGS....|...bring|
|00001a00| 54 6f 46 72 6f 6e 74 28 | 29 0d 09 09 77 69 74 68 |ToFront(|)...with|
|00001a10| 20 64 65 6c 69 6d 69 74 | 74 61 62 6c 65 5b 31 5d | delimit|table[1]|
|00001a20| 0d 09 09 09 73 65 74 28 | 64 65 6c 69 6d 69 74 49 |....set(|delimitI|
|00001a30| 74 65 6d 5b 74 61 62 5d | 2c 6e 6f 74 77 6f 72 64 |tem[tab]|,notword|
|00001a40| 6d 65 6d 62 65 72 29 0d | 09 09 09 73 65 74 28 64 |member).|...set(d|
|00001a50| 65 6c 69 6d 69 74 49 74 | 65 6d 5b 63 72 5d 2c 6e |elimitIt|em[cr],n|
|00001a60| 6f 74 77 6f 72 64 6d 65 | 6d 62 65 72 29 0d 09 09 |otwordme|mber)...|
|00001a70| 09 73 65 74 28 64 65 6c | 69 6d 69 74 49 74 65 6d |.set(del|imitItem|
|00001a80| 5b 22 2e 22 5d 2c 6e 6f | 74 77 6f 72 64 6d 65 6d |["."],no|twordmem|
|00001a90| 62 65 72 29 0d 09 09 09 | 73 65 74 28 64 65 6c 69 |ber)....|set(deli|
|00001aa0| 6d 69 74 49 74 65 6d 5b | 22 3f 22 5d 2c 6e 6f 74 |mitItem[|"?"],not|
|00001ab0| 77 6f 72 64 6d 65 6d 62 | 65 72 29 0d 09 09 09 73 |wordmemb|er)....s|
|00001ac0| 65 74 28 64 65 6c 69 6d | 69 74 49 74 65 6d 5b 22 |et(delim|itItem["|
|00001ad0| 21 22 5d 2c 6e 6f 74 77 | 6f 72 64 6d 65 6d 62 65 |!"],notw|ordmembe|
|00001ae0| 72 29 0d 09 09 09 73 65 | 74 28 64 65 6c 69 6d 69 |r)....se|t(delimi|
|00001af0| 74 49 74 65 6d 5b 22 3a | 22 5d 2c 6e 6f 74 77 6f |tItem[":|"],notwo|
|00001b00| 72 64 6d 65 6d 62 65 72 | 29 0d 09 09 09 73 65 74 |rdmember|)....set|
|00001b10| 28 64 65 6c 69 6d 69 74 | 49 74 65 6d 5b 22 3b 22 |(delimit|Item[";"|
|00001b20| 5d 2c 6e 6f 74 77 6f 72 | 64 6d 65 6d 62 65 72 29 |],notwor|dmember)|
|00001b30| 0d 66 69 74 74 65 78 74 | 62 6f 78 28 29 0d 80 00 |.fittext|box()...|
|00001b40| 00 00 00 00 84 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001b50| 04 00 00 00 00 00 84 00 | 00 00 00 00 84 00 00 00 |........|........|
|00001b60| 00 00 04 00 00 00 00 00 | 04 00 00 00 00 00 84 00 |........|........|
|00001b70| 00 00 00 00 80 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 84 00 |........|........|
|00001ba0| 00 00 00 00 04 00 00 00 | 00 00 84 00 00 00 00 00 |........|........|
|00001bb0| 80 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 84 00 00 00 00 00 |........|........|
|00001be0| 04 00 00 00 00 00 84 00 | 00 00 00 00 80 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 00 |........|........|
|00001c00| 00 00 00 00 04 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001c10| 04 00 00 00 00 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 04 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001c50| 00 00 04 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001cc0| 00 00 00 00 04 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001ce0| 00 00 04 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 04 00 00 00 00 00 04 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 04 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001d90| 04 00 00 00 00 00 00 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001da0| 00 00 04 00 00 00 00 00 | 04 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 04 00 00 00 00 00 04 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001e00| 00 00 04 00 00 00 00 00 | 04 00 00 00 00 00 04 00 |........|........|
|00001e10| 00 00 00 00 04 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 04 00 00 00 00 00 04 00 | 00 00 00 00 04 00 00 00 |........|........|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 04 00 00 00 00 00 |........|........|
|00001eb0| 04 00 00 00 00 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 80 00 00 00 00 00 | 00 00 01 00 00 00 1e a6 |........|........|
|00001f00| 00 00 1d a6 00 00 00 aa | 00 65 1d 24 18 fa 00 00 |........|.e.$....|
|00001f10| 00 1c 00 7e 00 02 53 54 | 52 20 00 03 00 1a 73 63 |...~..ST|R ....sc|
|00001f20| 70 74 00 00 00 4a 64 61 | 74 61 00 00 00 56 00 80 |pt...Jda|ta...V..|
|00001f30| ff ff 00 00 00 00 00 00 | 00 00 bf f4 ff ff 00 00 |........|........|
|00001f40| 00 0a 00 00 00 00 00 82 | ff ff 00 00 01 dd 00 00 |........|........|
|00001f50| 00 00 00 7f ff ff 00 00 | 01 ee 00 00 00 00 00 81 |........|........|
|00001f60| ff ff 00 00 00 17 00 00 | 00 00 47 cc 00 00 00 00 |........|..G.....|
|00001f70| 01 f4 00 00 00 00 2b 73 | 79 73 74 65 6d 2e 76 65 |......+s|ystem.ve|
|00001f80| 72 62 73 2e 61 70 70 73 | 2e 51 58 50 2e 45 78 61 |rbs.apps|.QXP.Exa|
|00001f90| 6d 70 6c 65 73 2e 46 69 | 74 42 6f 78 54 6f 54 65 |mples.Fi|tBoxToTe|
|00001fa0| 78 74 | |xt | |
+--------+-------------------------+-------------------------+--------+--------+